/*
 * @Author: taoke
 * @Date: 2022-05-07 10:54:01
 * @LastEditors: taoke
 * @LastEditTime: 2022-05-07 17:49:43
 * @Description:
 * @FilePath: \yunying-sys-cli4\src\api\partner\order\index.js
 */
import { pubRequire } from '@utils/public'
const baseUrl = '/partner/orders'
// 获取合伙人奖品兑换订单列表-TO-B
export function getOrders(obj, callBack, errBack) {
  return pubRequire('get', `${baseUrl}`, obj, callBack, errBack)
}
// 合伙人奖品发货或发放
export function patchOrdersById(id, obj, callBack, errBack) {
  return pubRequire('patch', `${baseUrl}/${id}`, obj, callBack, errBack)
}
// 导出合伙人列表
export function exportOrders() {
  return `${baseUrl}/export`
}
// 导入合伙人列表
export function importOrders() {
  return `${baseUrl}/import`
}
// 下载JDE卡导入模板
export function importJDcardsTemplate() {
  return `${baseUrl}/template`
}
// 批量导入JDE卡
export function importJDcards() {
  return `${baseUrl}/import-jd-card`
}
// 下载失败数据
export function downloadFailData() {
  return `${baseUrl}/import-jd-card/error`
}
